package com.sinosoft.cnmuseum.utils;

import java.util.List;

import com.sinosoft.cnmuseum.dao.MbXtglRyjsfpDao;
import com.sinosoft.commontools.record.Record;

public class AuthorityUtil {
	public static final String jsid_cj_nrshr = "2";
	public static final String jsid_cj_zyshr = "8";
	public static final String jsid_bm_nrshr = "5";
	public static final String jsid_bm_zyshr = "8";
	public static String getUseridsByJsid(String jsid){
		String result = "";
		Record record = new Record();
		record.add("jsbm", jsid);;
		
		MbXtglRyjsfpDao dao = new MbXtglRyjsfpDao();
		List<Record> list = dao.getListByProperty(record);
		
		if(list!=null){
			for(Record r:list){
				result+= r.getStrValue("rybm")+",";
			}
		}
		if(result.length()>0)
			result = result.substring(0,result.length()-1);
		return result;
	}
}
